<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <script type="text/javascript" src="js/jquery.validate.js"></script>
    <link href="css/index_work.css" rel="stylesheet">
    <script src="js/jquery-1.8.2.min.js"></script>
    <title>Title</title>
</head>

<body>
<script>
    $(function () {
        $.post("cate", function (obj) {
            for (var i in obj) {
                $("#cd").append("<option value='" + obj[i].cid + "'>" + obj[i].cname + "</option>")
            }


        })
    })
</script>
</body>
</html>
